package cn.bdqn.domain;

/**
 * 行政划区
 * @author dkj
 */
public class Address {
    /**
     * id
     */
    private Integer id;

    /**
     * 地区
     */
    private String address;

    /**
     * 父级id
     */
    private Integer parentId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", address='" + address + '\'' +
                ", parentId=" + parentId +
                '}';
    }
}